@@ -29,7 +29,7 @@ group :doc do |
||
| 29 | 29 |
gem 'sdoc', require: false |
| 30 | 30 |
end |
| 31 | 31 |
|
| 32 |
-#gem 'sprockets-rails', :require => 'sprockets/railtie' |
|
| 32 |
+gem 'sprockets-rails', :require => 'sprockets/railtie' |
|
| 33 | 33 |
gem "therubyracer" |
| 34 | 34 |
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS |
| 35 | 35 |
gem 'sass-rails' |
@@ -19,9 +19,9 @@ class AvatarUploader < CarrierWave::Uploader::Base |
||
| 19 | 19 |
|
| 20 | 20 |
if Rails.env.production? |
| 21 | 21 |
# Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility if using fog: |
| 22 |
- #include Sprockets::Rails::Helper |
|
| 23 |
- #include Sprockets::Helpers::RailsHelper |
|
| 24 |
- #include Sprockets::Helpers::IsolatedHelper |
|
| 22 |
+ # include Sprockets::Rails::Helper |
|
| 23 |
+ include Sprockets::Helpers::RailsHelper |
|
| 24 |
+ include Sprockets::Helpers::IsolatedHelper |
|
| 25 | 25 |
storage :fog |
| 26 | 26 |
end |
| 27 | 27 |
|
@@ -19,6 +19,9 @@ class CoverUploader < CarrierWave::Uploader::Base |
||
| 19 | 19 |
|
| 20 | 20 |
if Rails.env.production? |
| 21 | 21 |
# Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility if using fog: |
| 22 |
+ # include Sprockets::Rails::Helper |
|
| 23 |
+ include Sprockets::Helpers::RailsHelper |
|
| 24 |
+ include Sprockets::Helpers::IsolatedHelper |
|
| 22 | 25 |
storage :fog |
| 23 | 26 |
end |
| 24 | 27 |
|
@@ -17,7 +17,10 @@ class FileUploader < CarrierWave::Uploader::Base |
||
| 17 | 17 |
end |
| 18 | 18 |
|
| 19 | 19 |
if Rails.env.production? |
| 20 |
- # Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility if using fog: |
|
| 20 |
+ # Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility if using fog: |
|
| 21 |
+ # include Sprockets::Rails::Helper |
|
| 22 |
+ include Sprockets::Helpers::RailsHelper |
|
| 23 |
+ include Sprockets::Helpers::IsolatedHelper |
|
| 21 | 24 |
storage :fog |
| 22 | 25 |
end |
| 23 | 26 |
|